@font-face {
  font-family: 'Digital';
  src: url('../fonts/digital.ttf') format('truetype');
}

:root {
  --primary-bg: #061634;
  --panel-bg: rgba(9, 31, 60, 0.8);
  --border-color: #1d4584;
  --text-color: #4db3ff;
  --highlight-color: #4db3ff;
  --success-color: #00ff00;
  --warning-color: #ffcc00;
  --danger-color: #ff4d4f;
  --font-digital: 'Digital', sans-serif;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background-color: var(--primary-bg);
  color: #fff;
}

.dashboard-container {
  width: 100%;
  height: 100%;
  padding: 10px;
  background-color: var(--primary-bg);
  background-image: radial-gradient(circle at 50% 50%, rgba(29, 69, 132, 0.3) 0%, rgba(6, 22, 52, 0.3) 100%), 
                    linear-gradient(to bottom, rgba(13, 39, 73, 0.4) 0%, rgba(6, 22, 52, 0.4) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.dashboard-header {
  height: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}

.dashboard-title {
  font-size: 36px;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(77, 179, 255, 0.5);
  letter-spacing: 2px;
}

.dashboard-content {
  flex: 1;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.left-panel {
  width: 25%;
  height: 100%;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
}

.center-panel {
  width: 50%;
  height: 100%;
  position: relative;
}

.right-panel {
  width: 25%;
  height: 100%;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
}

.panel-box {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(9, 31, 60, 0.8);
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(77, 179, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(77, 179, 255, 0.05) 50%, rgba(77, 179, 255, 0.05) 75%, transparent 75%);
    background-size: 6px 6px;
    pointer-events: none;
    opacity: 0.3;
  }
}

.panel-header {
  height: 36px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(29, 69, 132, 0.8), rgba(9, 31, 60, 0.3));
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  color: var(--text-color);
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-left: 15px;
  
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--highlight-color);
  }
}

.panel-content {
  padding: 10px;
  height: calc(100% - 36px);
  overflow: hidden;
}

.digital-text {
  font-family: var(--font-digital);
  color: var(--highlight-color);
  text-shadow: 0 0 5px rgba(77, 179, 255, 0.7);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  
  th, td {
    padding: 8px;
    border: 1px solid rgba(29, 69, 132, 0.5);
    text-align: center;
  }
  
  th {
    background-color: rgba(29, 69, 132, 0.8);
    color: var(--text-color);
  }
  
  tr:nth-child(even) {
    background-color: rgba(9, 31, 60, 0.5);
  }
  
  tr:hover {
    background-color: rgba(77, 179, 255, 0.1);
  }
}

.status-online {
  color: var(--success-color);
}

.status-offline {
  color: var(--danger-color);
}

.status-warning {
  color: var(--warning-color);
} 